package com.shengyuan.manage_os.old.ying.erpm.controls;

import com.shengyuan.manage_os.old.ying.erpm.MainApplication;

import android.content.Context;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.widget.EditText;

public class ShenPiRen extends EditText {

	public ShenPiRen(Context context) {
		super(context);
	}
	public ShenPiRen(Context context, AttributeSet attrs) {
		super(context,attrs);
		if (!isInEditMode()) {
			String text = MainApplication.pShareUtil.ReadParam(ShenPiRen.class.toString());
			this.setText(text);
		}
	}
	@Override
	public Parcelable onSaveInstanceState() {
		MainApplication.pShareUtil.WriteParam(ShenPiRen.class.toString(), this.getText().toString());
		return super.onSaveInstanceState();
	}
}
